package com.tower.spring.gulimall.auth.feign;


import com.tower.spring.common.utils.R;
import com.tower.spring.gulimall.auth.vo.SocialUser;
import com.tower.spring.gulimall.auth.vo.UserLoginVo;
import com.tower.spring.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {


    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo userRegisterVo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R oauth2Login(@RequestBody SocialUser socialUser);
}
